package org.anupta.realm.server.inter.packet;

public enum InterPacketID {
	CONNECT((byte)1),
	ACCOUNT_WAITING((byte)2),
	ACCOUNT_UPDATE((byte)3);
	
	private byte id = 0;
	
	private InterPacketID(byte id){
		setId(id);
	}
	
	public static InterPacketID getPacket(byte id){
		if(id == 2){
			return ACCOUNT_WAITING;
		}
		if(id == 3){
			return ACCOUNT_UPDATE;
		}
		return CONNECT;
	}

	public byte getId() {
		return id;
	}

	public void setId(byte id) {
		this.id = id;
	}
}
